package com.live.util;


public class EmailThread extends Thread{
	private String email;
	private String content;
	private String subject;
	public EmailThread(String email ,String content,String subject){
		this.email = email;
		this.content = content;
		this.subject = subject;
	}
	
	public void run(){
		try {
			String smtp = "smtp.exmail.qq.com";// SMTP服务器
			String from ="zhibo@zoomcloud.cn";// 发信人
			String username = "zhibo@zoomcloud.cn";
			String password = "Zhibo@123";
			boolean result = Mail.send(smtp, from, email, subject, content, username, password);
			System.out.println("MailThread send result=" + result);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
